package chai.ning.inner;

public class HumanTest2 {

	public static void main(String[] args) {
		
		Class<?> c = Human.Brain.class.getEnclosingClass();
		System.out.println( c );
		
		Human.Brain b = new Human.Brain();
		System.out.println( b.name );
		
		c = Human.Heart.class.getEnclosingClass();
		System.out.println( c );
		
		Human.Heart h = new Human().new Heart();
		System.out.println( h.name );
	}
	
}
